package tedu.cn.submarine;

import javax.swing.ImageIcon;

public class MineSubmarine extends SeaObject implements EnemyLife {
    public MineSubmarine(){
        super(65,75);
    }

    public ImageIcon getImage(){
        return Images.minesubm;
    }

    public Mine shootMine(){
        return new Mine(this.getX()+this.getWidth(),this.getY()-11);
    }

    public void move(){
        setX(getX()+getSpeed());
    }

    public int getLife(){
        return 1;
    }
}
